package domain;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户类
 */
public class User implements Serializable {
    //IO流的版本号
    private static final long serialVersionUID = 3197512412901210502L;

    private String username;
    private String password;
    private String postbox;

    public Player player;


    public User() {
    }

    public User(String username, String password, String postbox) {
        this.username = username;
        this.password = password;
        this.postbox = postbox;
    }

    /**
     * 获取用户名
     *
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户名
     *
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取密码
     *
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置密码
     *
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取邮箱
     *
     * @return postbox
     */
    public String getPostbox() {
        return postbox;
    }

    /**
     * 设置密码
     *
     * @param postbox
     */
    public void setPostbox(String postbox) {
        this.postbox = postbox;
    }

}
